package org.hishenframework.core.web.menu;

public class MenuSubItemBean implements Comparable<MenuSubItemBean> {
	
	private String label;
	private String requestMapping;
	private int order;
	
	public MenuSubItemBean(String label, String requestMapping, int order) {
		this.label = label;
		this.requestMapping = requestMapping;
		this.order = order;
	}
	
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getRequestMapping() {
		return requestMapping;
	}
	public void setRequestMapping(String requestMapping) {
		this.requestMapping = requestMapping;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}

	@Override
	public int compareTo(MenuSubItemBean o) {
		return order > o.order ? 1 : -1;
	}

}
